package com.yfuxdeer.youchat.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.yfuxdeer.youchat.R;

public class AboutActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        TextView tv = findViewById(R.id.gitee);
        tv.setMovementMethod(LinkMovementMethod.getInstance());
        String webLinkText = "<a href='https://gitee.com/yfuxzpskbr/youchat-android'>https://gitee.com/yfuxzpskbr/youchat-android</a>" ;
        tv.setText(Html.fromHtml(webLinkText));
        Button back = findViewById(R.id.back);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}